<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui">
	<ui:composition template="/templates/padraoJSF.xhtml">
		<ui:define name="barraTitulo">Cadastro de Contas Banco</ui:define>
		<ui:define name="conteudo"> 
			<h:form id="form">
				<p:growl id="messages"/>
				<fieldset>
					<p:tabView>
						<p:tab title="Cadastro">
							<h:panelGrid columns="2" columnClasses="alinhaDir" >
								<h:column >
								</h:column>
								<h:column >
									<h:outputText value="Os campos com asterisco (*) s&atilde;o de preenchimento obrigat&oacute;rio." styleClass="campoObrigatorio" />
								</h:column>
								<h:outputLabel value="Banco:" styleClass="select" />
								<h:column>
									<h:selectOneMenu value="#{controleContasBanco.contasBanco.banco}" id="banco">
										<f:converter converterId="converteBanco"/>
										<f:selectItem itemLabel="selecione" itemValue="#{controleContasBanco.bancoSelecione}"/>
					                    <f:selectItems value="#{controleContasBanco.listaBanco}" var="banco" itemLabel="#{banco.descricao}" itemValue="#{banco}"/>
									</h:selectOneMenu>
									<h:outputText value="(*)" styleClass="campoObrigatorio" />
								</h:column>
								<h:outputLabel value="Descri&ccedil;&atilde;o:" styleClass="select" />
								<h:column >
									<h:inputText type="text" class="textfield" id="descricao" size="100" maxlength="150" value="#{controleContasBanco.contasBanco.descricao}" requiredMessage="Campo [DESCRI&Ccedil;&Atilde;O] obrigat&oacute;rio" required="true" alt="Descri&ccedil;&atilde;o"/>
									<h:outputText value="(*)" styleClass="campoObrigatorio" />
								</h:column>
								<h:outputLabel value="Ag&ecirc;ncia:" styleClass="select" />
								<h:column >
									<h:inputText type="text" class="textfield" id="agencia" size="10" maxlength="10" value="#{controleContasBanco.contasBanco.agencia}" requiredMessage="Campo [AG&Ecirc;NCIA] obrigat&oacute;rio" required="true" alt="Ag&ecirc;ncia"/>
									<h:outputText value="- "/>
									<h:inputText type="text" class="textfield" id="digitoAgencia" size="1" maxlength="1" value="#{controleContasBanco.contasBanco.digitoAgencia}" alt="D&iacute;gito Conta"/>
									<h:outputText value="(*)" styleClass="campoObrigatorio" />
								</h:column>
								<h:outputLabel value="Conta:" styleClass="select" />
								<h:column >
									<h:inputText type="text" class="textfield" id="conta" size="10" maxlength="10" value="#{controleContasBanco.contasBanco.conta}" requiredMessage="Campo [CONTA] obrigat&oacute;rio" required="true" alt="Conta"/>
									<h:outputText value="- "/>
									<h:inputText type="text" class="textfield" id="digitoConta" size="1" maxlength="1" value="#{controleContasBanco.contasBanco.digitoConta}" alt="D&iacute;gito Conta"/>
									<h:outputText value="(*)" styleClass="campoObrigatorio" />
								</h:column>
								<h:outputLabel value="Carteira:" styleClass="select" />
								<h:inputText type="text" class="textfield" id="carteira" size="3" maxlength="3" value="#{controleContasBanco.contasBanco.carteira}" alt="Carteira"/>
								<h:outputLabel value="Conv&ecirc;nio:" styleClass="select" />
								<h:inputText type="text" class="textfield" id="convenio" size="3" maxlength="3" value="#{controleContasBanco.contasBanco.convenio}" alt="Conv&ecirc;nio"/>
							</h:panelGrid>
						</p:tab>
					</p:tabView>
				</fieldset>
				<h:outputLink value="manutencao.jsf">
					<h:graphicImage url="/images/botoes/btnPesquisar.png" class="btnAcoes" />
				</h:outputLink>
				<h:commandLink action="#{controleContasBanco.gravar}" styleClass="alinhaDir">
					<h:graphicImage url="/images/botoes/btnGravar.png" class="btnAcoes"/>
				</h:commandLink>	
			</h:form>
		</ui:define>
	</ui:composition>
</html>